﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="SkillDS" targetNamespace="http://tempuri.org/SkillDS.xsd" xmlns:mstns="http://tempuri.org/SkillDS.xsd" xmlns="http://tempuri.org/SkillDS.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="UcConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="UcConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.UCENTRIK.Properties.Settings.GlobalReference.Default.UcConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="SkillAgentDSTableAdapter" GeneratorDataComponentClassName="SkillAgentDSTableAdapter" Name="SkillAgentDS" UserDataComponentName="SkillAgentDSTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="UcConnectionString (Settings)" DbObjectName="UC_DB.dbo.usp_skill_get_agents" DbObjectType="StoredProcedure" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_skill_get_agents</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@skill_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="agent_id" DataSetColumn="agent_id" />
              <Mapping SourceColumn="first_name" DataSetColumn="first_name" />
              <Mapping SourceColumn="last_name" DataSetColumn="last_name" />
              <Mapping SourceColumn="skill_id" DataSetColumn="skill_id" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="UcConnectionString (Settings)" DbObjectName="UC_DB.dbo.usp_skill_set_agent" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="SetSkillAgent" Modifier="Public" Name="SetSkillAgent" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="SetSkillAgent">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_skill_set_agent</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@agent_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@skill_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@set" Precision="1" ProviderType="Bit" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="SkillDSTableAdapter" GeneratorDataComponentClassName="SkillDSTableAdapter" Name="SkillDS" UserDataComponentName="SkillDSTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="UcConnectionString (Settings)" DbObjectName="UC_DB.dbo.usp_skill_select" DbObjectType="StoredProcedure" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_skill_delete</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@skill_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumn="skill_id" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_skill_insert</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@skill_name" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="skill_name" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_skill_select</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@skill_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_skill_update</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@skill_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumn="skill_id" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@skill_name" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="skill_name" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="skill_id" DataSetColumn="skill_id" />
              <Mapping SourceColumn="skill_name" DataSetColumn="skill_name" />
              <Mapping SourceColumn="date_created" DataSetColumn="date_created" />
              <Mapping SourceColumn="date_updated" DataSetColumn="date_updated" />
              <Mapping SourceColumn="date_deleted" DataSetColumn="date_deleted" />
              <Mapping SourceColumn="is_deleted" DataSetColumn="is_deleted" />
              <Mapping SourceColumn="agent_cnt" DataSetColumn="agent_cnt" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="UcConnectionString (Settings)" DbObjectName="UC_DB.dbo.usp_skill_get_list" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="GetSkillList" GetMethodModifier="Public" GetMethodName="GetSkillList" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetSkillList" UserSourceName="GetSkillList">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_skill_get_list</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@agent_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="UcConnectionString (Settings)" DbObjectName="UC_DB.dbo.usp_skill_insert" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="InsertSkill" Modifier="Public" Name="InsertSkill" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="InsertSkill">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_skill_insert</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@skill_name" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="SkillDS" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="SkillDS" msprop:Generator_UserDSName="SkillDS">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="SkillAgentDS" msprop:Generator_TableClassName="SkillAgentDSDataTable" msprop:Generator_TableVarName="tableSkillAgentDS" msprop:Generator_TablePropName="SkillAgentDS" msprop:Generator_RowDeletingName="SkillAgentDSRowDeleting" msprop:Generator_UserTableName="SkillAgentDS" msprop:Generator_RowChangingName="SkillAgentDSRowChanging" msprop:Generator_RowEvHandlerName="SkillAgentDSRowChangeEventHandler" msprop:Generator_RowDeletedName="SkillAgentDSRowDeleted" msprop:Generator_RowEvArgName="SkillAgentDSRowChangeEvent" msprop:Generator_RowChangedName="SkillAgentDSRowChanged" msprop:Generator_RowClassName="SkillAgentDSRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="agent_id" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnagent_id" msprop:Generator_ColumnPropNameInRow="agent_id" msprop:Generator_ColumnPropNameInTable="agent_idColumn" msprop:Generator_UserColumnName="agent_id" type="xs:int" />
              <xs:element name="first_name" msprop:Generator_ColumnVarNameInTable="columnfirst_name" msprop:Generator_ColumnPropNameInRow="first_name" msprop:Generator_ColumnPropNameInTable="first_nameColumn" msprop:Generator_UserColumnName="first_name">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="last_name" msprop:Generator_ColumnVarNameInTable="columnlast_name" msprop:Generator_ColumnPropNameInRow="last_name" msprop:Generator_ColumnPropNameInTable="last_nameColumn" msprop:Generator_UserColumnName="last_name">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="skill_id" msprop:Generator_ColumnVarNameInTable="columnskill_id" msprop:Generator_ColumnPropNameInRow="skill_id" msprop:Generator_ColumnPropNameInTable="skill_idColumn" msprop:Generator_UserColumnName="skill_id" type="xs:int" minOccurs="0" />
              <xs:element name="full_name" msprop:nullValue="_null" msprop:Generator_ColumnPropNameInRow="full_name" msprop:Generator_ColumnVarNameInTable="columnfull_name" msprop:Generator_ColumnPropNameInTable="full_nameColumn" msprop:Generator_UserColumnName="full_name" type="xs:string" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="SkillDS" msprop:Generator_TableClassName="SkillDSDataTable" msprop:Generator_TableVarName="tableSkillDS" msprop:Generator_TablePropName="_SkillDS" msprop:Generator_RowDeletingName="SkillDSRowDeleting" msprop:Generator_UserTableName="SkillDS" msprop:Generator_RowChangingName="SkillDSRowChanging" msprop:Generator_RowEvHandlerName="SkillDSRowChangeEventHandler" msprop:Generator_RowDeletedName="SkillDSRowDeleted" msprop:Generator_RowEvArgName="SkillDSRowChangeEvent" msprop:Generator_RowChangedName="SkillDSRowChanged" msprop:Generator_RowClassName="SkillDSRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="skill_id" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnskill_id" msprop:Generator_ColumnPropNameInRow="skill_id" msprop:Generator_ColumnPropNameInTable="skill_idColumn" msprop:Generator_UserColumnName="skill_id" type="xs:int" />
              <xs:element name="skill_name" msprop:Generator_ColumnVarNameInTable="columnskill_name" msprop:Generator_ColumnPropNameInRow="skill_name" msprop:Generator_ColumnPropNameInTable="skill_nameColumn" msprop:Generator_UserColumnName="skill_name">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="date_created" msprop:Generator_ColumnVarNameInTable="columndate_created" msprop:Generator_ColumnPropNameInRow="date_created" msprop:Generator_ColumnPropNameInTable="date_createdColumn" msprop:Generator_UserColumnName="date_created" type="xs:dateTime" />
              <xs:element name="date_updated" msprop:Generator_ColumnVarNameInTable="columndate_updated" msprop:Generator_ColumnPropNameInRow="date_updated" msprop:Generator_ColumnPropNameInTable="date_updatedColumn" msprop:Generator_UserColumnName="date_updated" type="xs:dateTime" minOccurs="0" />
              <xs:element name="date_deleted" msprop:Generator_ColumnVarNameInTable="columndate_deleted" msprop:Generator_ColumnPropNameInRow="date_deleted" msprop:Generator_ColumnPropNameInTable="date_deletedColumn" msprop:Generator_UserColumnName="date_deleted" type="xs:dateTime" minOccurs="0" />
              <xs:element name="is_deleted" msprop:Generator_ColumnVarNameInTable="columnis_deleted" msprop:Generator_ColumnPropNameInRow="is_deleted" msprop:Generator_ColumnPropNameInTable="is_deletedColumn" msprop:Generator_UserColumnName="is_deleted" type="xs:boolean" />
              <xs:element name="agent_cnt" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnagent_cnt" msprop:Generator_ColumnPropNameInRow="agent_cnt" msprop:Generator_ColumnPropNameInTable="agent_cntColumn" msprop:Generator_UserColumnName="agent_cnt" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:SkillAgentDS" />
      <xs:field xpath="mstns:agent_id" />
    </xs:unique>
    <xs:unique name="SkillDS_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:SkillDS" />
      <xs:field xpath="mstns:skill_id" />
    </xs:unique>
  </xs:element>
</xs:schema>